/*
 *MIT License
 *
 *Copyright (c) 2019 chenshuai cs4380@163.com
 *
 *Permission is hereby granted, free of charge, to any person obtaining a copy
 *of this software and associated documentation files (the "Software"), to deal
 *in the Software without restriction, including without limitation the rights
 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 *copies of the Software, and to permit persons to whom the Software is
 *furnished to do so, subject to the following conditions:
 *
 *The above copyright notice and this permission notice shall be included in all
 *copies or substantial portions of the Software.
 *
 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 *SOFTWARE.
 */

package com.cs.cslc.common.pojo;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import java.time.LocalDateTime;

/**
 * BasePojo pojo基类.
 * <p>
 * 表的创建操作记录字段，中间关系表不继承此类
 * </p>
 *
 * @author cs
 * @version 1.0
 * @date 2019-11-08 09:17
 * @description
 */
@Setter
@Getter
public class BasePojo {
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;
    /**
     * 创建用户Id
     */
    @Column(name = "create_user_id")
    private String createUuserId;
    /**
     * 创建用户姓名
     */
    @Column(name = "create_user_name")
    private String createUserName;
    /**
     * 最后更新日期
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;
    /**
     * 最后更新用户Id
     */
    @Column(name = "update_user_id")
    private String updateUserId;
    /**
     * 最后更新用户姓名
     */
    @Column(name = "update_user_name")
    private String updateUserName;

    /**
     * 租户Id
     * TODO 暂时未启动
     */
    @Column(name = "tenant_id")
    private String tenantId;
}